package com.xyzwps.collections.stack;

import com.xyzwps.collections.Collection;

public interface Stack<E> extends Collection<E> {
    E push(E element);

    E pop();

    E peek();

    default void add(E element) {
        this.push(element);
    }
}
